<style type="text/css">
.block {
	margin:0 auto;
	height:100px;
}
.block .rows {
	display:block;
	clear:both;
	padding:5px;
	height:25px;
	clear:both;
}
.block .rows .text {
	
}
.block .rows .field{
    
}
</style>
<script language="javascript">
function chkform()
{
	var email = $("#email").val();
	//var code = $("#code").val();
	
	if((email=='') || (email==null) || (!chkemail(email)))
	{
		$("#error").rows("Please enter your email.");
		return false ;
	}
	if((code=='') || (code==null))
	{
		$("#error").rows("Please enter code.");
		return false ;
	}
	/*$.post("<?//=base_url()?>lostpass/action",{'email':email, "code" : code},function(msg)
	{
		if(msg.error==1)
		{
			var cont = '<div class="title-cat">Lost Password</div><div style="height:50px;"></div>' ;
			cont += msg.str;
			$("#pglostpass").html(cont);
		}
		else
		{
			var cont = '<div class="title-cat">Lost Password</div><div style="height:50px;"></div>' ;
			cont += msg.str;
			$("#pglostpass").html(cont);
		}
		
	},'json');*/
	return true ;
}
</script>
<div class="container mainpage">
	<div class="box">
        <form method="post" action="<?=base_url()?>lostpass/action" name="frmLostPass" id="frmLostPass" onSubmit="return chkform();">
            <div class="title">Lost Password</div>
            <div id="error"></div>
            <div class="wrap fourteen columnss">
                <div class="label">Please fill your email into this form below. We will send your password to this email.</div>
                <div class="block offset-by-one">
                	<div class="rows">
                        <span class="text two columns alpha">Email :</span>
                        <span class="field seven columns"> <input type="text" value="" class="style w250" name="email" id="email" /></span>
                    </div>
                    <div class="rows">
                        <span class="text two columns alpha">Code :</span>
                        <span class="field seven columns"><input type="text" class="w100" value="" name="code" id="code" />
                        	<div class="fl"></div>
                        </span>
                    </div>
                    <div class="input offset-by-two" style="margin:10px 0 0 4px;">
                        <input type="submit" class="submit"  value="Get New Password" name="bt_submit">
                    </div>
                    <div class="clear"></div>
                 </div>
            </div>
        </form>
        <div class="clear"></div>
    </div>
</div>
